<?php
header("content-type:text/html; charset=utf-8");
include('classes/addtime/time.class.php');
$time = new time();
session_start();
$uid = $_SESSION['u_id'];
$res = $time->delete_user($_GET['aid']);
if($res) {
    echo '<script>alert("删除成功");location.href="time.php?id='.$uid.'"</script>';
} else {
    echo '<script>alert("删除失败");location.href="time.php?id='.$uid.'"</script>';
}

?>